public class Application {
    public static void main(String[] args) {
        ThreeElementOutlet outlet;
        Wash wash = new Wash();
        outlet = wash;
        System.out.println("使用三相插座接通电流：");
        outlet.connectElectricCurrent();
        TV tv = new TV();
        TreeElectricAdapter adapter = new TreeElectricAdapter(tv);
        outlet = adapter;
        System.out.println("使用三相插座接通电流：");
        outlet.connectElectricCurrent();
    }
}
